<?php
class Core_Model_Utfencode implements Core_Model_Mainable{
    
    public function main(array $variables = null) {
         foreach($variables as $key => $value){
             if(is_array($value)){
                 $variables[$key] = $this->main($value);
             }
             else {
                 $variables[$key] = utf8_decode($value);
             }
         }
         return $variables;
    }

}
